<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function test(a, b, ...args) {
        console.log(a);
        console.log(args);
      }
      test(12, 12, 4, 5);

      //对象合并
      let obj1 = { a: 1, b: 2 };
      let obj2 = {c : 3};
      let obj3 = {...obj1,...obj2}
      console.log(obj3)
    </script>
  </body>
</html>
